<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>请注意加载的路径</title>
</head>

<body style="color:red">
    THis is red Page;
    <h1><a id="ahref" href="https://www.baidu.com">浏览器打开</a></h1>
    <button id="btn_open">Electron窗口打开</button>
    <button id="send_parent">子窗口给父窗口传递消息</button>
</body>
<script src="./red.js"></script>
<script>
    //require('./red.js')
</script>

</html>